import fetch from '@/api'
// 表格列表
export function getAuditList(params) {
    return fetch({
        method: 'get',
        url: `/check`,
        params,
    })
}

// 新增
export function addAudit(data) {  
    return fetch({
        method:'post',
        url:`/check`,
        data,
    })
}

// 编辑
export function updateAudit(id,data) {
    return fetch({
        method:'put',
        url:`/check/${id}`,
        data,
    })
}

//删除
export function deleteAudit(id){
    return fetch({
        method:'delete',
        url:`/check/${id}`
    })
}

//统计
export function getAuditTotal(){
    return fetch({
        method:'get',
        url:`/check/count`
    })
}

//审核
export function audit(id,auditStatus,data) {  
    return fetch({
        method:'post',
        url:`/check/doing/${id}/${auditStatus}`,
        data,
    })
}

//详情
export function detailAudit(id,data) {  
    return fetch({
        method:'get',
        url:`/check/${id}`,
        data,
    })
}



